package com.like.example.slice;

import com.like.example.ResourceTable;
import com.like.example.adapters.ListAdapter;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.ListContainer;

public class ListActivity extends AbilitySlice {
    ListContainer listContainer;

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        setUIContent(ResourceTable.Layout_ability_list);
        listContainer = (ListContainer) findComponentById(ResourceTable.Id_list_view);
        listContainer.setItemProvider(new ListAdapter(this));
    }
}
